import { DEFAULT_LAYOUT } from '../base';

export default {
  path: '/echarts',
  name: 'Echarts',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '统计分析',
    requiresAuth: true,
    icon: 'icon-pie-chart',
    order: 6,
    roles: ['super-admin'] // 限制只有管理员可以访问
  },
  children: [
    {
      path: '', // 将路径改为空字符串，作为默认子路由
      name: 'Analysis',
      component: () => import('@/views/echarts/index.vue'),
      meta: {
        locale: '数据分析',
        requiresAuth: true,
        roles: ['super-admin']
      }
    }
  ]
};
